import QtQuick

import "../../communication"

Item{
    id:root
    width: 800
    height:600

    property alias title:title.text

    default property alias content: contentArea.data

    Text{
        id:title

        font{
            pixelSize: 30
            bold: true
        }
        anchors{
            top:parent.top
            topMargin: 20
            left:parent.left
            leftMargin:20
        }
        text: root.objectName
        color:"grey"
    }

    UIButton{
        id:returnButton
        width: 80
        height:30
        text:"返回"
        anchors{
            top:title.bottom
            topMargin: 20
            left:parent.left
            leftMargin: 20
        }

        onClicked: {
            EventBus.uiState.currentMenu = "开始"
        }

    }

    Item{
        id:contentArea

        anchors{
            top:title.bottom
            left:returnButton.right
            right:parent.right
            bottom:parent.bottom
            topMargin: 20
            leftMargin: 20
            rightMargin: 20
            bottomMargin: 20
        }

    }



}
